import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  delivery: '/patch/delivery',
  refuse: '/patch/refuse'
}

/**
 * 确认发货
 * @param {*} data
 */
export function delivery (data) {
  return axios({
    url: api.delivery,
    method: 'post',
    data
  })
}

/**
 * 修改订单价格
 * @param {*} data
 */
export function refuse (data) {
  return axios({
    url: api.refuse,
    method: 'post',
    data
  })
}
